<template>
  <div>
    <TypeNav />
    <ListContainer />
    <Recommend />
    <Rank />
    <Like />
    <Floor v-for="item in floorList" :key="item.id" :item="item" />
    <Brand />
  </div>
</template>

<script>
import ListContainer from '@/views/Home/ListContainer'
import Recommend from '@/views/Home/Recommend'
import Rank from '@/views/Home/Rank'
import Like from '@/views/Home/Like'
import Floor from '@/views/Home/Floor'
import Brand from '@/views/Home/Brand'
import { mapState, mapActions } from 'vuex'
export default {
  name: 'VHome',
  components: {
    ListContainer,
    Recommend,
    Rank,
    Like,
    Floor,
    Brand
  },
  created() {
    this.getSwiperList()
    this.getFloorList()
  },
  methods: {
    ...mapActions('home', ['getSwiperList', 'getFloorList'])
  },
  computed: {
    ...mapState('home', ['floorList'])
  }
}
</script>

<style lang="less" scoped></style>
